<template>
  <div id="app">
    <router-view/>
    <Footer v-if="$route.meta.showfooder"></Footer>
  </div>
</template>
<script>
  import Footer from '@/components/Footer'
  // import {mapState} from 'vuex'
  export default {
    name: 'Home',
    components: {
      Footer
    },
    methods:{
      // ...mapState(['getUserInfo'])
    },
    mounted() {
      this.$store.dispatch('getUserInfo')
    }
  }
</script>
<style lang="stylus">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

</style>
